package com.atguigu.tingshu.account.mapper;

import com.atguigu.tingshu.model.account.RechargeInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface RechargeInfoMapper extends BaseMapper<RechargeInfo> {

    @Update("update recharge_info set recharge_status = '0902' where order_no = #{orderNo} and recharge_status = '0901'")
    int updateRechargeStatus(String orderNo);
}
